package com.guigu.www.erp.dengtao.service.impl;

import com.guigu.www.erp.common.pojo.MDesignProcedureModule;
import com.guigu.www.erp.dengtao.dao.MDesignProcedureModuleMapper;
import com.guigu.www.erp.dengtao.service.MDesignProcedureModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MDesignProcedureModuleImpl implements MDesignProcedureModuleService {
    @Autowired
    MDesignProcedureModuleMapper mDesignProcedureModuleMapper;
    @Override
    public void add(MDesignProcedureModule mDesignProcedureModule) {
        mDesignProcedureModuleMapper.insertSelective(mDesignProcedureModule);
    }

    @Override
    public List<MDesignProcedureModule> seleAll(String id) {

        return mDesignProcedureModuleMapper.select(Integer.parseInt(id));
    }

    @Override
    public void up(MDesignProcedureModule mDesignProcedureModule) {
        mDesignProcedureModuleMapper.updateByPrimaryKeySelective(mDesignProcedureModule);
    }

    @Override
    public List<MDesignProcedureModule> ck(int id) {
        return    mDesignProcedureModuleMapper.select(id);

    }

}
